negotiator.boaframework.offeringstrategy.anac2011
Class HardHeaded_Offering

java.lang.Object
  extended by negotiator.boaframework.OfferingStrategy
      extended by negotiator.boaframework.offeringstrategy.anac2011.HardHeaded_Offering

public class HardHeaded_Offering
extends OfferingStrategy

This is the decoupled Offering Strategy for HardHeaded (ANAC2011). The code was taken from the ANAC2011 HardHeaded and adapted to work within the BOA framework. >>Extension of opponent model>> As default the agent uses the frequency model to select the best bid from a small set of bids. The agent is extended such that other models can be used. If no opponent model is given, then a random bid is chosen. DEFAULT OM: HardHeadedFrequencyModel with default parameters Decoupling Negotiating Agents to Explore the Space of Negotiation Strategies T. Baarslag, K. Hindriks, M. Hendrikx, A. Dirkzwager, C.M. Jonker

Author:
Alex Dirkzwager, Mark Hendrikx

Field Summary
 
Fields inherited from class negotiator.boaframework.OfferingStrategy
endNegotiation, helper, negotiationSession, nextBid, omStrategy, opponentModel
 
Constructor Summary
HardHeaded_Offering()
          Empty constructor for the BOA framework.
 
Method Summary
 BidDetails determineNextBid()
          Determines the next bid the agent will offer to the opponent
 BidDetails determineOpeningBid()
          Determines the first bid to be offered by the agent
 double get_p()
          This function calculates the concession amount based on remaining time, initial parameters, and, the discount factor.
 void init(NegotiationSession negotiationSession, OpponentModel model, OMStrategy oms, java.util.HashMap<java.lang.String,java.lang.Double> parameters)
          Initializes the offering strategy.
 void initializeAgent(NegotiationSession negoSession, OpponentModel model, OMStrategy oms)
           
 
Methods inherited from class negotiator.boaframework.OfferingStrategy
endSession, getHelper, getNextBid, isEndNegotiation, loadData, setNextBid, storeData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HardHeaded_Offering

public HardHeaded_Offering()
Empty constructor for the BOA framework.

Method Detail

init

public void init(NegotiationSession negotiationSession,
                 OpponentModel model,
                 OMStrategy oms,
                 java.util.HashMap<java.lang.String,java.lang.Double> parameters)
          throws java.lang.Exception
Description copied from class: OfferingStrategy
Initializes the offering strategy. If parameters are used, this method should be overridden.

Overrides:
init in class OfferingStrategy
Parameters:
negotiationSession - state of the negotiation.
model - opponent model which may be used.
oms - opponent model strategy which may be used.
parameters - optional parameters for the offering strategy.
Throws:
java.lang.Exception - if the offering strategy fails to initialize.

initializeAgent

public void initializeAgent(NegotiationSession negoSession,
                            OpponentModel model,
                            OMStrategy oms)

determineNextBid

public BidDetails determineNextBid()
Description copied from class: OfferingStrategy
Determines the next bid the agent will offer to the opponent

Specified by:
determineNextBid in class OfferingStrategy
Returns:
bid to offer to the opponent.

determineOpeningBid

public BidDetails determineOpeningBid()
Description copied from class: OfferingStrategy
Determines the first bid to be offered by the agent

Specified by:
determineOpeningBid in class OfferingStrategy
Returns:
the opening bid of the agent.

get_p

public double get_p()
This function calculates the concession amount based on remaining time, initial parameters, and, the discount factor.

Returns:
double: concession step